package com.payment.common.constant;

import com.payment.common.enums.ProjectName;

/**
 * 通用常量信息
 * 
 * @author payment
 */
public class Constants
{
    //上传商品图片
    public static final String PRODUCT = "product/";
    // 获取头像上传路径
    public static  String AVATAR = ProjectName.SMALL_CATTLE.getCode()+"/avatar/";
    //获取轮播图上传路径
    public static  String ROTATION_CHART = ProjectName.SMALL_CATTLE.getCode()+"/rotationChart/";
    //商户头像
    public static  String MERCHANT_HEAD =ProjectName.SMALL_CATTLE.getCode()+"/merchant/head/";
    public static  String MERCHANT_CARD = ProjectName.SMALL_CATTLE.getCode()+"/merchant/card/";
    //商户图片地址
    public static  String APP_MESSAGE = ProjectName.SMALL_CATTLE.getCode()+"/appMessage/";



    //购买98会员升级提示信息
    public static final String MERCHANT_UPGRADE = "会员升级";


    //  商城订单描述
    public static final String SHOPPING_REMARK = "会员升级";
    //  商城订单描述
    public static final String SHOPPING = "商城商品";



    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";


    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 自动去除表前缀
     */
    public static String AUTO_REOMVE_PRE = "true";

    /**
     * 当前记录起始索引
     */
    public static String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static String ORDER_BY_COLUMN = "orderByColumn";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static String IS_ASC = "isAsc";

    public static String BILL_REMIND_ONE = "尊敬的用户您好,您尾号";
    public static String BILL_REMIND_TWO = "信用卡账单日在本月的";
    public static String BILL_REMIND_THREE = "号已出,请注意出账信息,制定还款计划";

    public static String PROFIT_REMIND_ONE = "尊敬的用户您好,您在";
    public static String PROFIT_REMIND_TWO = "得到";
    public static String PROFIT_REMIND_THREE = "分润,可在可提现余额中发现";




    public static final String DEVELOP_MODE = "0";
    public static final String CLIENT_NO = "3000";

    public static final String TEST_SERVER_URL = "https://dev-api.chanpay.co";
    public static final String TEST_KEY = "0123456789ABCDEFFEDCBA9876543210";
    public static final String TEST_ACCOUNT_UUID = "4bf0db69-a2a4-4a4f-b9f4-3d555e987115";

    public static final String ONLINE_SERVER_URL = "https://qkapi.chanpay.com";
    public static final String ONLINE_KEY = "FEDCBA98765432100123456789ABCDEF";
    public static final String ONLINE_ACCOUNT_UUID = "a5762297-4049-4aeb-99bd-9b37ec37686f";

    public static String getClientNo() {
        return CLIENT_NO;
    }

    public static String getServerUrl() {
        // 生产模式
        if ("0".equals(DEVELOP_MODE)) {
            return ONLINE_SERVER_URL;
        }
        // 开发模式
        else {
            return TEST_SERVER_URL;
        }
    }

    public static String getKey() {
        // 生产模式
        if ("0".equals(DEVELOP_MODE)) {
            return ONLINE_KEY;
        }
        // 开发模式
        else {
            return TEST_KEY;
        }
    }

    public static String getAccountUuid() {
        // 生产模式
        if ("0".equals(DEVELOP_MODE)) {
            return ONLINE_ACCOUNT_UUID;
        }
        // 开发模式
        else {
            return TEST_ACCOUNT_UUID;
        }
    }

}
